package com.bawei.admin;

import com.bawei.common.utils.JwtUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.bawei.admin.dao")
@ComponentScan(basePackages = {"com.bawei"})
@EnableDiscoveryClient
@EnableFeignClients("com.bawei.admin.feign")
@EnableScheduling
public class AdminApp {
    public static void main(String[] args) {
        SpringApplication.run(AdminApp.class);

    }

    //@Bean
    //public JwtUtil getJwtUtil(){
    //    return new JwtUtil();
    //}
}
